# importing the modules
import matplotlib.pyplot as plt
import file_dir_convert_process.make_dir as fd
# 自动保存图片-创建目录并序列化命名
# creating data and plotting a histogram
x = [1, 1, 9, 16, 25, 36, 49, 64, 81, 100]
plt.hist(x)
#重命名
i=1
# 定义要图片保存目录
mkpath = "subgraph/"
# 调用函数
fd.mkdir(mkpath)
image_name=mkpath+"subgraph"+str(i)+".png"
# saving the figure.
plt.savefig(image_name)

# plt.show()